<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery.min.js"></script>
</head>

<body>
    <div class="nav">我是 nav div</div>
    <div class="nav">我是 nav div</div>
    <div class="nav">我是 nav div</div>
    <div class="nav">我是 nav div</div>
    <ul>
        <li>我是ul</li>
        <li>我是ul</li>
        <li>我是ul</li>

    </ul>
    <ol>
        <li>我是ol</li>
        <li>我是ol</li>
        <li>我是ol</li>
    </ol>
    <script>
        $(function() {
                console.log($('.nav'));
                console.log($('ul li'));
                console.log($('ul>li'));

            })
            //隐式迭代
        $('div').css("background", "pink");
        $('ul li').css("color", "pink");
    </script>
</body>

</html>